Fire up your applications with Jetfire
RSS
Jetfire Wiki


Quick Search
»
Advanced Search »

Page History: Empty Object

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2010/12/09 00:05


Empty Object

An empty object is a 'read only' object that is automatically created by Jetfire as required on a per class basis. It is a major component of Jetfire's Void Safety mechanisms.

Assigning Empty

Workflows are automatically assigned to the empty object. For example
MyClass myObject; // is really MyClass myObject = MyClass.Empty();

Testing for Empty

Empty object can be tested using the follow contructs:
if (myObject == MyClass.Empty()) ...
or
if (isEmpty(myObject))...
Note: The method 'isEmpty' will also return true if the parameter is null.

Modifying an Empty Object

A 'Empty' object is a 'read only' object and can not be modified currently in Jetfire code. It can be modified by editing the XML representation of the empty object found in the Server Nexus persistent storage mechanism.

Creating a Custom Empty Object (V1.3.5)

A custom empty object can be created in a class by inserting a empty creation method called 'CreateEmpty()'. If this method is found the parser will execute this method a the end of parsing/code creation process.

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.